package models.shop.Mail;

import play.data.validation.Email;
import play.data.validation.MaxSize;
import play.data.validation.MinSize;
import play.data.validation.Required;

public class Message {
    @Required
    @MinSize(2)
    @MaxSize(30)
    public String username;
    @Required
    @Email
    @MaxSize(40)
    public String email;
    @Required
    @MinSize(5)
    @MaxSize(500)
    public String body;

    public Message() {

    }

    public Message(String username, String email, String body) {
        this.username = username;
        this.email = email;
        this.body = body;
    }
}
